<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="CustomiseCategory.aspx.cs" Inherits="manager_inventory_CustomiseCategory" Title="Untitled Page" ValidateRequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<head>
    <link href="../../scripts/subModal/subModal.css" rel="stylesheet" type="text/css" />
    </head>
    <script type="text/javascript" src="../../scripts/prototype.js"></script>
    <script type="text/javascript" src="../../scripts/subModal/common.js"></script>
    <script type="text/javascript" src="../../scripts/subModal/subModal.js"></script>
    <script type="text/javascript">
        var selectedImage='';
        var ctrlImage=null;
        var litImage=null;
        function onSelectImage(returnVal) {
          ctrlImage.src="/services/thumbnail.aspx?method=restricttosize&sx=400&i="+selectedImage;
          litImage.value = selectedImage;
        }
    </script>

<h2><asp:Literal runat="server" ID="litHeading"></asp:Literal></h2>
<div style="margin-top:5px;">
          <b class="rc">
          <b class="rc1"><b></b></b>
          <b class="rc2"><b></b></b>
          <b class="rc3"></b>
          <b class="rc4"></b>
          <b class="rc5"></b></b>

          <div class="rcfg">
            <!-- content goes here -->
    <asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click" style="width:100px;font-weight:bold;" />&nbsp;&nbsp;<button ID="btnCancel" onclick="document.location.href='categories.aspx'; return false;">< Back to Categories</button>
            </div>

      <b class="rc">
      <b class="rc5"></b>
      <b class="rc4"></b>
      <b class="rc3"></b>
      <b class="rc2"><b></b></b>
      <b class="rc1"><b></b></b></b>
    </div>
    <label><b>Page Template:</b> </label><asp:DropDownList id="ddlMasterPage" runat="server"></asp:DropDownList> <asp:HyperLink id="linkPreviewMasterPage" runat="server" Text="Preview this template..." Target="_blank"></asp:HyperLink>
    <p>
    <label><b>Image</b></label>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="showPopWin('../dialogs/SelectImage.aspx', 700, 500, onSelectImage);">Choose Image...</a><br />
    <asp:Image runat="server" ID="categoryImage" />
    <input type="hidden" runat="server" id="hiddenImageUrl" />
    <script type="text/javascript">
        ctrlImage = $('<%=categoryImage.ClientID %>');
        litImage = $('<%=hiddenImageUrl.ClientID %>');
    </script>
    </p>
    <p><label><b>Html Content:</b></label>
    <FCKeditorV2:FCKeditor ID="fckContent" BasePath="/fckeditor/" Height="500px" runat="server">
        </FCKeditorV2:FCKeditor>
    </p>

<div id="popupContainer">
  <div id="popupInner">
    <div id="popupTitleBar">
      <div id="popupTitle"></div>
      <div id="popupControls">
        <img src="../../scripts/subModal/close.gif" onclick="hidePopWin(false);" />
      </div>
    </div>
    <iframe src="../../scripts/subModal/loading.html" 
      style="width:100%;height:100%;background-color:transparent;" 
      scrolling="auto" frameborder="0" 
      allowtransparency="true" id="popupFrame" 
      name="popupFrame" width="100%" height="100%">
    </iframe>
  </div>
</div>

</asp:Content>

